ExamPlay Light Logo
サインイン

Computer Science for IGCSE & O level - Programming (Section 3 - No. 14)

Which statement most accurately describes the difference between a procedure and a function?
Procedures can't return values; functions always return values.
Functions can't have parameters; procedures can.
Procedures always return values; functions can't.
Procedures are used for input; functions are used for output.

説明

A key distinction is that functions are designed to return a value, while procedures may or may not return values.

コメント (0)

コメントするにはログインしてください
広告
BrainBehindX Inc Logo
©2026; 搭載 BrainBehindX Inc